package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysSignContractMapper;
import com.ruoyi.system.domain.SysSignContract;
import com.ruoyi.system.service.ISysSignContractService;

/**
 * 产品申请—进件—签署合同Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-05-07
 */
@Service
public class SysSignContractServiceImpl implements ISysSignContractService 
{
    @Autowired
    private SysSignContractMapper sysSignContractMapper;

    /**
     * 查询产品申请—进件—签署合同
     * 
     * @param applyId 产品申请id
     * @return 产品申请—进件—签署合同
     */
    @Override
    public SysSignContract selectSysSignContractById(Long applyId)
    {
        return sysSignContractMapper.selectSysSignContractById(applyId);
    }

    /**
     * 新增产品申请—进件—签署合同
     * 
     * @param sysSignContract 产品申请—进件—签署合同
     * @return 结果
     */
    @Override
    public int insertSysSignContract(SysSignContract sysSignContract)
    {
        sysSignContract.setCreateTime(DateUtils.getNowDate());
        return sysSignContractMapper.insertSysSignContract(sysSignContract);
    }

    /**
     * 修改产品申请—进件—签署合同
     * 
     * @param sysSignContract 产品申请—进件—签署合同
     * @return 结果
     */
    @Override
    public int updateSysSignContract(SysSignContract sysSignContract)
    {
        return sysSignContractMapper.updateSysSignContract(sysSignContract);
    }
}
